package com.baizhi.feign;

import com.baizhi.po.UserPO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("USERS")
public interface UserFeign {
    @GetMapping("users/{id}")
    UserPO queryById(@PathVariable("id") Integer id);

    @GetMapping("users/query/{name}")
    UserPO queryByName(@PathVariable("name") String name);
}
